That setting in application properties only catches Xpage errors for debugging. It doesn't catch the standard 404 such as:
http://localhost/server/website.nsf/non-existent-page.xsp
I don't think there is a method - it seems to be having to use the form method from old notes.